<?php

class Application_Form_AddMetaData extends Zend_Form
{

    public function init()
    {
        $this->setMethod('post');

        $this->addElement('text', 'name', array(
            'label'         => 'Name:',
            'required'      => true,
            'filters'       => array('StringTrim')    
        ));
        
        $this->addElement('text', 'author', array(
            'label'         => 'Author:',
            'required'      => false,
            'filters'       => array('StringTrim')
        ));
        
        $this->addElement('textarea', 'description', array(
            'label'         => 'Description:',
            'required'      => false,
        	  'cols'			=> 40,
        	  'rows'			=> 10,
            'filters'       => array('StringTrim')    
        ));

        $this->addElement('hidden', 'id', array(
            'required'      => true
        ));
        
        $this->addElement('hidden', 'src', array(
            'required'      => false  
        ));
        
        $this->addElement('hidden', 'url', array(
            'required'      => false
        ));

        $this->addElement('hidden', 'imgId', array('required' => false));
        
        $this->addElement('submit', 'submit', array(
            'label'      => 'Update infos',
            'required'      => false,
            'ignore'      => true
        ));
        
    }


}

